<script setup>
    import { useCounterStore } from '../stores/counter.js'
    import { useUserStore } from '../stores/user.js'

    const counter = useCounterStore()
    const user = useUserStore()
</script>

<template>  
    <p>{{ counter.count }}</p>
    <p>{{ counter.doubleCount }}</p>
    <button @click="counter.increment">修改count</button>
    <hr>

    <p>{{ user.name }}</p>
    <p>{{ user.age }}</p>
    <p>{{ user.info }}</p>
    <button @click="user.grow">修改</button>

</template>

<style scoped>

</style>